package com.dks.mapper;

import java.util.List;
import java.util.Map;

import com.dks.dto.UserInfoDto;
import com.dks.models.Users;
import com.dks.vo.ParentVo;
import com.dks.vo.TeacherVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UsersMapper{

    Integer insert(Users users);

    Integer update(Users users);

    Integer delete(@Param("id") Integer id);

    Users select(@Param("id") Long id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<Users> getByMapList(Map<String, Object> map);

    UserInfoDto getInfoByMapList(Map<String, Object> map);

    List<ParentVo> getUserParentList(Map<String, Object> map);

    List<TeacherVo> getTeacherParentList(Map<String, Object> map);

    Integer updateByCode(Users users);

    Users selectByBfCode(@Param("bfCode") String bfCode);

    Integer getWeChatBindByUser(Map map);

    Users getByPhoneNum(@Param("phoneNum")String phoneNum);
}
